//
//  QSNotificationCenterCell.m
//  DigitalEconomy_iOS
//
//  Created by Ding on 2020/3/19.
//  Copyright © 2020 DingC. All rights reserved.
//

#import "QSNotificationCenterCell.h"

@implementation QSNotificationCenterCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization codes
    [self configSubView];
}
- (void)configSubView{
    self.backgroundColor = [UIColor clearColor];
    self.contentView.layer.cornerRadius = 8;
    self.contentView.layer.masksToBounds = YES;
    self.contentView.backgroundColor = [UIColor QSColorWhiteFFFFFF];
    [self.contentView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.leading.equalTo(self.mas_leading).offset(kRealValue(10));
        make.trailing.equalTo(self.mas_trailing).offset(kRealValue(-10));
        make.top.equalTo(self.mas_top).offset(kRealValue(10));
        make.bottom.equalTo(self.mas_bottom).offset(kRealValue(0));
    }];
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setModel:(QSNotificationDetailModel *)model{
    _model = model;
    self.titleLabel.text = model.imTitle;
    self.dateLabel.text = [NSDate dateWithTimestamp:model.imCreateTime format:@"yyyy-MM-dd HH:mm"];
    
}

@end
